{if $shop.ggopen}
    <div class="txtScroll_top"><div class="bd"><ul class="infoList"><li ><span id="gonggao">{$shop.gonggao}</span></li></ul></div></div>
    <style>
    	.infoList li{overflow:hidden;}
    </style>
    <script>
	var ggw=$("#gonggao").width();
	var ggpw=$("#gonggao").parent().width();
	var mgl=0;
	var ggT=true; 
	ggscroll();
		function ggscroll(){
			if(ggT){
				mgl=mgl-1;
				if(mgl+ggw<0){
					mgl=ggpw;
				}
				$("#gonggao").css({marginLeft:mgl});
			}
			setTimeout(function(){
				ggscroll();
			},60);
		}
		$(document).on("mouseenter",".txtScroll_top",function(){
			ggT=false;
		})
		$(document).on("mouseleave",".txtScroll_top",function(){
			ggT=true;
		})
    </script>
    {/if}